package com.ruoyi.common.constant;

/**
 * 单据状态枚举
 *
 * @author ZhanCheng.Li
 * @version 1.0.0
 * @date 2021/1/4 13:50
 */
public enum OrderStatusEnum {

    /**
     *  通用状态：启用/停用
     */
    STATUS_ON("10", "启用"),
    STATUS_OFF("50", "停用"),
    SUCCESS("SUCCESS", "成功"),
    FAIL("FAIL", "失败"),

    UN_PAY("10", "未结算"),
    PAID("50", "已结算"),

    FREEZE("10", "冻结中"),
    FREE("50", "已入账"),
    SQZ("80","申请中"),
    GET_OUT("100", "已提现"),
    REJECT("150", "已驳回"),

    APPLY("10", "申请中"),
    COMPLETE("50", "已完成"),

    /**
     * 商家用户操作状态：
     *  0 : 新订单
     *  10 ：已接单
     *  50：已完成
     *  100：已取消
     */
    WAIT_PAY("-10","待支付"),
    NO_PAY_ORDER("-20","免费吃订单"),
    SHOP_ORDER_NEW("100","新订单"),
    SHOP_ORDER_RECEIVE("150","已接单"),
    SHOP_ORDER_ARRIVED("180","已到场"),
    SHOP_ORDER_COMPLETE("500","已完成"),
    SHOP_ORDER_WAIT_PAY("800","取消需支付"),
    SHOP_ORDER_CANCEL("1000","已取消"),
    SHOP_ORDER_EVALUATE("2000","已评价"),



    /**
     * 店铺状态：启用/停用
     */
    SHOP_INFO_USE("10", "启用"),
    SHOP_INFO_STOP("50", "停用"),
    /**
     * 商品类型状态：启用/停用
     */
    PRODUCT_TYPE_USE("10", "启用"),
    PRODUCT_TYPE_STOP("50", "停用"),
    /**
     * 商品状态：上架中/下架
     */
    PRODUCT_USE("10", "上架中"),
    PRODUCT_STOP("50", "下架"),

    /**
     * 图片状态
     */
    IN_USE("IN_USE", "使用中"),
    ABANDONED("ABANDONED", "已废弃");

    private final String statusId;
    private final String statusName;

    OrderStatusEnum(String statusId, String statusName) {
        this.statusId = statusId;
        this.statusName = statusName;
    }

    public String getStatusId() {
        return statusId;
    }

    public String getStatusName() {
        return statusName;
    }

}
